package moerls

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name   string `gorm:"type:varchar(50)"`
	Passes string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:varchar(50)"`
	Rid int `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	RodeName string `gorm:"type:varchar(50)"`
}
type RoleRode struct {
	gorm.Model
	Rid int `gorm:"type:varchar(50)"`
	Nid int `gorm:"type:varchar(50)"`
}
type Car struct {
	gorm.Model
	CarName string `gorm:"type:varchar(50)"`
	CarCode string `gorm:"type:varchar(50)"`
	CarPo   string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	OrderCode  string `gorm:"type:varchar(50)"`
	OrderName  string `gorm:"type:varchar(50)"`
	OrderPrice string `gorm:"type:varchar(50)"`
	Cid        int    `gorm:"type:varchar(50)"`
}
type OrderList struct {
	OrderId    int    `gorm:"type:varchar(50)"`
	CarName    string `gorm:"type:varchar(50)"`
	CarCode    string `gorm:"type:varchar(50)"`
	CarPo      string `gorm:"type:varchar(50)"`
	OrderCode  string `gorm:"type:varchar(50)"`
	OrderName  string `gorm:"type:varchar(50)"`
	OrderPrice string `gorm:"type:varchar(50)"`
}
